package cn.zhujs.org.query;

import lombok.Data;

@Data
public class DepartmentQuery {
    private Integer currentPage=1;
    private Integer pageSize=5;
    public Integer getStart(){
        //一定要加this  否则会永远是第一页 五条
        return (this.currentPage-1)*this.pageSize;
    }
}
